﻿<UserControl x:Class="P2.Cuberry.Modules.SimpleAccounting.FiAccount.FiAccountsListView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:local="clr-namespace:P2.Cuberry.Modules.SimpleAccounting.FiAccount"
    >

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/P2.Cuberry.Framework.Layout;component/Styles/Styles.xaml"/>
                <ResourceDictionary Source="/P2.Cuberry.Framework.Layout;component/Styles/CuberryDataGrid.xaml"/>                
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    
    <Grid VerticalAlignment="Stretch">
        <Grid.RowDefinitions>
            <RowDefinition Height="*" MinHeight="44" /> 
            
        </Grid.RowDefinitions>
        

        <DataGrid Grid.Row="0" 
                     Name="FiAccountsList"                      
                     
                     MouseDoubleClick="FiAccountsList_DblClick" 
                     Style="{DynamicResource CuberryDataGridStyle}"
                     VerticalAlignment="Stretch" >
            

            <DataGrid.Columns>
                <DataGridTextColumn Header="{Translate fiAccountNoL}" IsReadOnly="True" Binding="{Binding Path=FiAccountNo}" MinWidth="50" Width="100" />
                <DataGridTextColumn Header="{Translate fiAccountNameEnL}" IsReadOnly="True" Binding="{Binding Path=FiAccountNameEn}" MinWidth="50" Width="150" /> 
                <DataGridTextColumn Header="{Translate fiAccountNameArL}" IsReadOnly="True" Binding="{Binding Path=FiAccountNameAr}" MinWidth="50" Width="150" />

                <DataGridTextColumn Header="{Translate fiAccountTypeIDL}" IsReadOnly="True" Binding="{Binding Path=FiAccountTypeName}" MinWidth="50" Width="150" />
                <DataGridTextColumn Header="{Translate AccountLevelL}" IsReadOnly="True" Binding="{Binding Path=FiAccountLevel}"  MinWidth="50" Width="100" />
                <DataGridTextColumn Header="{Translate StatusNameL}" IsReadOnly="True" Binding="{Binding Path=StatusName}" MinWidth="50" Width="*" />
            </DataGrid.Columns>

        </DataGrid>
    
</Grid>
</UserControl>
